package com.example.t410.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.codecs.pojo.annotations.BsonProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document("pingLun") //表名称
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PingLun {
    @Id
    String id;
    @BsonProperty("lunTanId")
    String lunTanId;
    @BsonProperty("comTime")
    Long comTime;
    @BsonProperty("userName")
    String userName;
    @BsonProperty("context")
    String context;
    @BsonProperty("likeNum")
    Integer likeNum;

}
